package fr.pascal.polymorphisme;

public class Animal /* implements Famille*/  {

	private String nom;
	private int age;

	public Animal() {
//		System.out.println("Animal.Animal()");
	}

	public Animal(String nom, int age) {
		this.nom = nom;
		this.age = age;
//		System.out.println("Animal.Animal(nom, age)");
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "Animal [nom=" + nom + ", age=" + age + "]";
	}
}
